package com.stlm2.dems.dao;

import com.stlm2.dems.entity.DdmGoods;
import com.stlm2.dems.entity.FootMark;
import com.stlm2.core.base.BaseDao;
import com.stlm2.dems.entity.User;

import java.util.List;

public interface FootMarkDao extends BaseDao<FootMark> {

    public List<FootMark> getByGoodsId(Integer userId,Integer goodsId);
    public Integer getCount(Integer userId);

    public void updateByUserId(Integer userId);

    public void addFootMark(User user, DdmGoods goods);
    public Integer sumNum(Integer goodsId);

}